package com.system.blogAdmin.blog.service.impl;

import com.cnc.common.persistence.biz.BaseBizImpl;
import com.cnc.common.persistence.dao.BaseDao;
import com.system.blogAdmin.blog.dto.ArticleDto;
import com.system.blogAdmin.blog.dto.SearchDto;
import com.system.blogAdmin.blog.entity.BlogArticle;
import com.system.blogAdmin.blog.dao.BlogArticleDao;
import com.system.blogAdmin.blog.service.BlogArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @描述：[BEAN_NAME]Service实现�?
 * @作�??:  Auto Code
 * @创建时间:  2017-6-23 16:47:25
 * @版本: 1.0
 */
@Service("blogArticleService")
public class BlogArticleServiceImpl extends BaseBizImpl<BlogArticle> implements BlogArticleService {

    @Autowired
    private BlogArticleDao blogArticleDao;

    @Override
    protected BaseDao<BlogArticle> getDao() {
        return blogArticleDao;
    }

    @Override
    public List<SearchDto> getSearch(String value, String contentType) {
        return  blogArticleDao.getSearch(value,contentType);
    }

}
